package com.maogouxiong.seatatestorder.order.controller;


import com.maogouxiong.seatatestorder.order.entity.Order;
import com.maogouxiong.seatatestorder.order.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author maogouxiong
 * @since 2020-06-19
 */
@RestController
@RequestMapping("/order/order")
public class OrderController {

    @Autowired
    private OrderService orderService;

    @RequestMapping(value = "/insertOrder")
    public void insertOrder(int money, String userId, String commodityCode, int count) {
        orderService.insertOrder(money, userId, commodityCode, count);
    }
}
